// mock/MockService.ts
export class MockService {
  static connectToServer(): Promise<boolean> {
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve(true);
      }, 1000);
    });
  }

  static getDroneStatus(): Promise<any> {
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          connected: true,
          batteryLevel: 85,
          signalStrength: 'strong',
          position: { lat: 39.9042, lng: 116.4074 }
        });
      }, 500);
    });
  }

  static sendControlCommand(command: string): Promise<boolean> {
    console.log(`Mock command sent: ${command}`);
    return Promise.resolve(true);
  }

  static getDrawingData(): Promise<any> {
    return Promise.resolve({
      tracks: [
        { id: 'track1', name: 'Test Track 1', points: [] },
        { id: 'track2', name: 'Test Track 2', points: [] }
      ]
    });
  }

  static getParameters(): Promise<any> {
    return Promise.resolve({
      speed: 5,
      altitude: 100,
      returnHomeEnabled: true
    });
  }
}